package com.wude.guild.holder;

import android.app.Activity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.wude.bean.BangbiBean;
import com.wude.guild.R;

import org.xutils.x;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 绑币记录Holder
 * Created by Administrator on 2017/3/20.
 */

public class BangBiHolder extends BaseHolder<BangbiBean> {
    @BindView(R.id.name)
    TextView name;
    @BindView(R.id.qian)
    TextView qian;

    @Override
    protected void refreshView(BangbiBean bangbiBean, int position, Activity activity) {
        name.setText(bangbiBean.name);
        qian.setText(bangbiBean.yue);
    }

    @Override
    protected View initView() {
        View inflate = LinearLayout.inflate(x.app(), R.layout.holder_bangbi, null);
        ButterKnife.bind(this, inflate);
        inflate.setTag(this);
        return inflate;
    }
}
